package com.iamnh.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.iamnh.domain.TestTable;
import com.iamnh.handler.TestTableHandler;

@Controller
@RequestMapping("/ab")
public class TestTableController {
	@Autowired
	private TestTableHandler  testTableHandler ;
	
	@RequestMapping(value = "/test", method = { RequestMethod.GET })
	public String testMvc() {
		
		TestTable t = new TestTable();
		t.setName("abc");
		testTableHandler.save(t);
		return "index";
	}
}
